package cn.yangliu.webflux.service.impl;

import java.util.List;
import java.util.Map;

import cn.yangliu.webflux.entity.User;
import cn.yangliu.webflux.entity.UserDto;
import cn.yangliu.webflux.repository.UserRepository;
import cn.yangliu.webflux.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 杨柳
 * @contact 
 * @date 2019-05-15 23:06
 */
@Service
@Slf4j
@Transactional(rollbackFor = Throwable.class)
public class UserServiceImpl extends JpaServiceImpl<User, Long, UserRepository> implements UserService {


    @Override
    public List<UserDto> list() {
        return repository.list();
    }
}
